#ifndef WIDGET_NETWORK_H
#define WIDGET_NETWORK_H



#include "players.h"
#include "gui.h"
#include "network.h"
#include <string>
#include <QtGui>



class network_widget: public QWidget
{

	Q_OBJECT

public:

	network_widget( player* pl, QPushButton* nb, QWidget* parent = 0, Qt::WindowFlags flags = 0 );
	~network_widget();
	void set_status( std::string s );//QAbstractSocket::SocketState state);

	player* current_player;
	QLineEdit* address_i;
	QLineEdit* port_i;
	QLabel* status_l;
	QPushButton* next_b;

	QVBoxLayout* layout;


private slots:

	void network_connect();
	void slot_connected();

};



#endif